import adminSupport from 'lola-admin-support-el'
const constants = adminSupport.lib.sysConstant

constants.purOrderStatus = new Map(
  [
    ['All', { value: 'All', label: '全部', disabled: true, color: '' }],
    [0, { value: 0, label: '待结算', color: '#F56C6C' }],
    [1, { value: 1, label: '已完成', color: '#409EFF' }],
    [2, { value: 2, label: '已取消', color: '#666' }]
  ]
)

constants.ws = {
  LOGIN: 11002, // 登录
  PUSH_ORDER_CHANGE: 20000, // 订单变化
  PUSH_ORDER_CHANGE_LOGISTICS: 20001, // 物流订单变化
  PUSH_ORDER_CHANGE_LOGISTICS_COST: 20002, // 物流支出单
  PUSH_REQUEST: 11003 // 订阅
}
export default constants
